Fixed Crop issue for Photoshop CC

THere was an issue with the crop function and photoshop cc if some
layers were locked