[#320] Move constant to Device domain class, adapt related code

Move the `NO_IMEI` constant to Device domain class, and adapt related
code (the classes calling `DeviceDAO.getByImei`