Given below are a legal principle and a factual situation. Apply the given legal principle to the factual situation and select the most appropriate answer to the question given below:
Principle: Attempt is not an offence until it is an attempt to commit an offence punishable with imprisonment.
Facts: Z makes an attempt to steal some jewels by breaking open a box, and finds after so opening the box, that there is no jewel in it.